//添加class
function addclassName (obj, _className) {
	if (obj.className == '') {
		obj.className = _className;
	}else{
		var arrClassName = obj.className.split(' ');
		var _index = ( arrClassName, _className );
		if ( _index == -1 ) {
			obj.className += ' ' + _className;
		};
	}
}

function arrIndexOf (arr, v) {
	for (var i = 0; i < arr.length; i++) {
		if (arr[i] == v) {
			return i;
		};
	};
	return -1;
}